package com.chap18;

import org.openjdk.jol.info.ClassLayout;

/**
 * <p>
 * <code>ObjectTest</code>
 * </p>
 *
 * @author junbao3
 * TODO
 * @date 2023-05-17 15:16
 * Copyright (C) 2021 IFlyTek. All rights reserved.
 */
public class ObjectTest {
    public static void main(String[] args) {
        Object obj = new Object();
        System.out.println(ClassLayout.parseInstance(obj).toPrintable());
        System.out.println("--------------------------------------");
        System.out.println(ClassLayout.parseInstance(new Test()).toPrintable());
    }
}

class Test{
    private long p;
}
